function init() {
    var teacherId = "20172719";
    var obj = new Object();
    obj.teacherId = teacherId;
    $.ajax({
        url: "/get_my_video_list",
        type: "POST",
        data:obj,
        cache: false,//设置不缓存
        success: init_success,
        error: showErrorInfo
    });
}

function init_success(data) {
    var dom = document.getElementById("member-list");
    var str = "";
    for(var i=0;i<data.length;i++){
        str += "<tr>" +
            "<td>" +
            "<div class=\"layui-unselect layui-form-checkbox\" lay-skin=\"primary\" data-id='2'><i class=\"layui-icon\">&#xe605;</i></div>" +
            "</td>" +
            "<td>"+ String(i) +"</td>" +
            "<td>"+ data.videoList[i].name +"</td>" +
            "<td>"+ data.videoList[i].teacherId +"</td>" +
            "<td class=\"td-manage\">\n" +
            "<a title=\"删除\" onclick=\"member_del(this,'要删除的id')\" href=\"javascript:;\">\n" +
            "<i class=\"layui-icon\">&#xe640;</i>\n" +
            "</a>\n" +
            "</td>" +
            "</tr>"
    }
    dom.innerHTML = str;
}